Gain and offset: Gain and offset of values on file
Description
These functions can be used to get or set the gain and offset parameters used to transform values when reading from a file (currently these are ignored when writing a file). The gain and offset parameters are applied to the raw values using the formula below:
value <- value * gain + offset
The default value for gain is 1 and for offset is 0. 'gain' is sometimes referred to as 'scale'.
Note that setting gain and/or offset only affects reading of values from a file, it does not change values that are already (or only) in memory.